package com.bean;

import java.sql.Date;


public class Salary {
    //    private double emp_month=0.05;
//    private double man_month=0.01;
//    private double emp_annual=0.01;
    private int sid;
    private String id;
    private String name;
    private String miaoshu;//描述
    private Date date;
    private String dnumber;//部门号
    private boolean isManager;
    private double base;//基础工资
    private double salesVolumn;//销售量
    private double commision;//提成
    private double tax;//税险
    private double salary;//实发工资

    public Salary(int sid, String id, String name, String miaoshu, Date date, String dnumber, boolean isManager, double base, double salesVolumn, double commision, double tax, double salary) {
        this.sid = sid;
        this.id = id;
        this.name = name;
        this.miaoshu = miaoshu;
        this.date = date;
        this.dnumber = dnumber;
        this.isManager = isManager;
        this.base = base;
        this.salesVolumn = salesVolumn;
        this.commision = commision;
        this.tax = tax;
        this.salary = salary;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getMiaoshu() {
        return miaoshu;
    }

    public void setMiaoshu(String miaoshu) {
        this.miaoshu = miaoshu;
    }

    public String getId() {return id;}
    public String getName(){return name;}

    public void setCommision(double commision) {
        this.commision = commision;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Date getDate(){
        return date;
    }
    public String getDnumber(){
        return dnumber;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isManager() {
        return isManager;
    }

    public void setManager(boolean manager) {
        isManager = manager;
    }

    public double getBase() {
        return base;
    }

    public void setBase(double base) {
        this.base = base;
    }

    public double getCommision() {
        return commision;
    }

    public double getTax() {
        return tax;
    }

    public int getSid() {
        return sid;
    }

    public void setTax(double tax) {
        this.tax = tax;
    }

    public double getSalesVolumn(){
        return salesVolumn;
    }
    public double getSalary(){
        return salary;
    }
    public void setDnumber(String dnumber){
        this.dnumber=dnumber;
    }
    public void setId(String id){this.id=id;}
    public void setSalesVolumn(double salesVolumn){
        this.salesVolumn=salesVolumn;
    }

    public void setSalary() {
        this.salary = base+commision-tax;
    }//月薪=基础+销量提成-税险
}
